<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>17-散点图</title>
  <style>
    #charts {
      width: 800px;
      height: 600px;
      border: 1px solid #000;
    }
  </style>
</head>
<body>
  <div id="charts"></div>
  <script src="./js/echarts.min.js"></script>
  <script>
    // 1. 获取页面中的标签对象 
    const charts = echarts.init(document.getElementById('charts'))
   
    // 2. 根据属性来绘制图形
    charts.setOption({
      xAxis:{},
      yAxis:{},
      tooltip:{},
      // 如果series中的图形只有一个的话，则可以将series写成对象的形式
      series:[
        {
          type:'scatter',
          data:[
            [13,44],
            [66,77],
            [10,30],
            [33,66],
            [44,70]
          ]
        }
      ]
    })
  </script>
</body>
</html>